<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title></title>
	<link href="http://fonts.googleapis.com/css?family=Droid+Sans:400,700" rel="stylesheet" type="text/css" />
<style type="text/css">
* { font-family: 'Droid Sans', sans-serif; color:#333333; text-shadow:1px 1px 1px #fff; }
html, body { margin:10px; background:#f5f5f5; }
ul { list-style-type:none; }
h1 { font-size:22px; }
li a { font-size:18px; text-decoration:none; }
li a:hover { text-decoration:underline; }
</style>
</head>
<body>
<?php
/**
 * =============================================================================
 * Activation du directory listing via listing php
 * pas possible via apache a cause des dossiers
 * commencant par un "." qui embrouillent grave Apache
 */
class FolderList extends FilterIterator
{
	public function accept()
	{
	    $current = $this->current();
	    return (($current->isDir()) && (0 !== strpos((string)$current, '.')));
	}
}
?>

<?php if (iterator_count($it = new FolderList(new DirectoryIterator('.'))) > 0) : ?>
<h1>REPOSITORY LISTING</h1>
<ul>
	<?php foreach ($it as $k => $v) : ?>
	<li>&gt; <a href="<?= $v ?>"><?= $v ?></a></li>
	<?php endforeach; ?>
</ul>
<?php endif; ?>

</body>
</html>